package com.zhaojiadi.adapter.impl;

import com.zhaojiadi.adapter.OrderAdapterService;
import com.zhaojiadi.adapter.service.OrderService;

/**
 * 内部订单,判断首单逻辑
 */
public class InsideOrderServiceImpl implements OrderAdapterService
{
    private final OrderService orderService=new OrderService();

    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId)<=1;
    }
}
